/** 地址 */
export function genSchool() {
  return [
    {name:"清华附中",id:0},
    {name:"北大附中", id:1}
  ]
}
export function genStage(id) {
  const stage = [
    [{name:"小学", id:0}, {name:"初中", id:1}],
    [{name:"小学", id:0},{name:"初中", id:1},],
  ]
  return stage[id];
}
export function genGrades(schoolId,stageId) {
  const grades = [
    [[{name:"一年级", id:1}, {name:"二年级", id:2}, {name:"三年级", id:3}], [{name:"七年级", id:7}, {name:"八年级", id:8}, {name:"九年级", id:9}]],
    [[{name:"一年级", id:1}, {name:"二年级", id:2}, {name:"三年级", id:3}], [{name:"七年级", id:7}, {name:"八年级", id:8}, {name:"九年级", id:9}]]
  ]
  return grades[schoolId][stageId];
}
export function genClasses(schoolId, gradesId) {
  const classes = new Map ([
    [0, 
      new Map([
        [1, [{name:"一班", id:1},{name:"二班", id:2}, {name:"san班", id:3}]], 
        [2, [{name:"一班", id:1},{name:"二班", id:2}]],
        [3, [{name:"一班", id:1},{name:"二班", id:2}]],
        [7, [{name:"一班", id:1},{name:"二班", id:1}, {name:"班", id:2}]],
        [8, [{name:"一班", id:1},{name:"二班", id:1}]] , 
        [9, [{name:"一班", id:2}]]
      ])
    ],

  ])
  return classes.get(schoolId).get(gradesId);
}

/** 孩子 */
export function genStudent(school, id) {
  const childs = new Map ([
    [0, 
      new Map([
        [0, {id:0, name: '学生1', classes: '小学一年级一班', sex: '男', height:  101, weight:  102, isSpeical: false, bust: 0, waist: 0, hips: 0, schoolId:0, school:'清华'}],
        [1, {id:1, name: '学生2', classes: '小学一年级一班', sex: '男', height:  101, weight:  102, isSpeical: false, bust: 0, waist: 0, hips: 0, schoolId:0, school:'清华'}],
        [2, {id:2, name: '学生3', classes: '小学一年级一班', sex: '男', height:  101, weight:  102, isSpeical: false, bust: 0, waist: 0, hips: 0, schoolId:0, school:'清华'}],
      ])
    ],
  ])
  return childs.get(school).get(id)
}

/** 地址列表 */
export function genStudentsList(school) {
  const childs = new Map ([
    [0, 
      new Map([
        [0, {id:0, name: '学生1', classes: '小学一年级一班', sex: '男', height:  101, weight:  102, isSpeical: false, bust: 0, waist: 0, hips: 0, schoolId:0,}],
        [1, {id:1, name: '学生2', classes: '小学一年级一班', sex: '男', height:  101, weight:  102, isSpeical: false, bust: 0, waist: 0, hips: 0, schoolId:0,}],
        [2, {id:2, name: '学生3', classes: '小学一年级一班', sex: '男', height:  101, weight:  102, isSpeical: false, bust: 0, waist: 0, hips: 0, schoolId:0,}],
      ])
    ],
  ])
  return childs.get(school)
}
